//
//  KRSportController.m
//  KRSport
//
//  Created by KaoRny on 17/4/22.
//  Copyright © 2017年 KaoRny. All rights reserved.
//

#import "KRSportController.h"
#import "KRSportTrackController.h"
#import "KRSportTrack.h"
@interface KRSportController ()




@end

@implementation KRSportController

- (void)viewDidLoad {
    [super viewDidLoad];
    
}

//点击运动按钮
- (IBAction)clickSportBtn:(UIButton *)sender {
    //创建运动轨迹模型
    KRSportTrack *track = [[KRSportTrack alloc] initWithSportType:sender.tag withSportState:KRSportStateContinue];
    //创建轨迹控制器
    KRSportTrackController *trackVC = [KRSportTrackController new];
    trackVC.track = track;
    [self presentViewController:trackVC animated:YES completion:nil];
    
}



@end
